"""X的平方根"""


class Solution:
    def mySqrt(self, x):
        print(int(x ** 0.5))

if __name__ == '__main__':
    x = int(input())
    s = Solution()
    s.mySqrt(x)
